<template>
  <ul>
    <li>
      <h2>当前年月</h2>
      <span>{{data['year-month']}}</span>
    </li>
    <li>
      <h2>今年属相</h2>
      <span>{{data.animalsYear}}</span>
    </li>
    <li>
      <h2>农历年名</h2>
      <span>{{data.lunarYear}}</span>
    </li>
    <li>
      <h2>事宜事件</h2>
      <span>{{data.suit}}</span>
    </li>
    <li>
      <h2>避免事件</h2>
      <span>{{data.avoid}}</span>
    </li>
  </ul>
</template>
<script>
export default {
  name: 'daypage',
  props: {
    data: Object
  }
}
</script>
<style  lang="less" scoped>
ul {
  margin-top: 30px;
  margin: 14px;
}
ul li {
  width: 100%;
  // background-color: #ccc;
  margin-top: 20px;
  height: 38px;
  line-height: 38px;
  border-radius: 15px;
  box-shadow: 0, 5px, 10px, 10px, rgba(0, 0, 0, 0.3);
  border: 1px solid #999;
  display: flex;
  align-items: center;
  h2 {
    display: inline-block;
    font-size: 20px;
    color: #d40400;
    margin: 0 10px 0 8px;
    width: 140px;
  }
  span {
    font-size: 14px;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
}
</style>
